package com.example.fms.dto.req;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class AddStandardFreightReqDto {
    //id
    private Long id;

    //规则名称
    @NotEmpty(message = "规则名称不能为空")
    private String ruleName;

    //仓库
    @NotEmpty(message = "发货仓库不能为空")
    private String warehouse;

    //规则类型
    @NotEmpty(message = "规则类型不能为空")
    private String type;

    //省
    @NotEmpty(message = "省不能为空")
    private String province;

    //市
    private String city;

    //区
    private String area;

    //订单数
    @NotEmpty(message = "订单数不能为空")
    private String number;

    //范围
    @NotEmpty(message = "确定范围不能为空")
    private String extent;

    //计算规则
    @NotEmpty(message = "计算规则不能为空")
    private String calculationRules;

    //运费单价
    @NotEmpty(message = "运费单价不能为空")
    private String freightUnitPrice;

}
